package com.bjc.core.bean.request;

import javax.validation.constraints.NotNull;
import com.bjc.base.bean.BaseReqVO;
import com.bjc.base.core.ConfigEnvironment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 角色权限
 * 
 * @author 许自辉
 * @date 2017年7月27日 下午7:54:07
 */
@Getter
@Setter
@ToString
@ApiModel("数据字典请求")
public class RolePermissionReqVO extends BaseReqVO {

	@NotNull
	@ApiModelProperty(value = "角色id", required = true)
	private Integer roleId;

	private Integer[] roleIds;

	@ApiModelProperty("权限id")
	private Integer permissionId;

	private Integer[] permissionIds;

	@NotNull
	@ApiModelProperty(value = "类型，0无权限，1有权限", required = true)
	private Integer type;

	public String getAppName() {
		return ConfigEnvironment.getAppName();
	}

}
